package com.ikaros.exception;

import com.ikaros.enums.ResultEnums;

/**
 * Created by Ikaros on 2017/9/25.
 */
public class SellException extends RuntimeException{
    private Integer code;

    public SellException(ResultEnums resultEnums) {
        super(resultEnums.getMessage());
        this.code=resultEnums.getCode();
    }
    public SellException(Integer code,String message){
        //supper父类
        super(message);
        this.code=code;
    }
}
